<?php
class IndexAction extends BaseAction
{
    public function index()
    {
        //类型信息
        //更新的课程信息
        $CourseModel = M('Course');
        import("ORG.Util.Page");
        $count = $CourseModel->count();

        $Page = parent::getPage($count);
        $courses = $CourseModel->limit($Page['limit'])->select();
        $this->assign('courses', $courses);
        $this->assign('page', $Page['page']);
        $this->display();
    }
}